<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>城市信息</title>
</head>
<body>
<h1>城市信息</h1>
<table>
<tr>
<td>城市</td>
<td>操作</td>
</tr>

<c:forEach items="${citylist}" var="city" varStatus="status">
<tr>
<td>${city.name}</td>
<td>
<a href="deletecity.action?city.id=${city.id}"  onclick='return confirm("是否删除！")'>删除</a>
<a href="preupdatecity.action?id=${city.id}"">修改</a>
</td>
</tr>
</c:forEach> 
</table>

  <c:if test="${!pagination.first}">
	<li><a href="show.action?pagination.no=1">首页</a></li>
</c:if>
<c:if test="${pagination.previous}">
	<a href="show.action?pagination.no=${pagination.no-1 }">上页</a>
</c:if>
<c:if test="${pagination.next}">
	<a href="show.action?pagination.no=${pagination.no+1 }">下页</a>
</c:if>
<c:if test="${!pagination.last&&pagination.no>0}">
	<a href="show.action?pagination.no=${pagination.pageSum }">末页</a>
</c:if>
</body>
</html>